Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickTime Components /
Chapter 9 - Movie Data Exchange Components / Movie Data Exchange Components Reference
Configuring Movie Data Import Components /


MovieImportSetSampleDuration

The MovieImportSetSampleDuration function allows an application to set the sample duration for new samples to be created with your component.

pascal ComponentResult MovieImportSetSampleDuration
                                  (ComponentInstance ci,
                                    TimeValue duration,
                                    TimeScale scale);
ci
Identifies the application's connection to your movie data import component.
duration
Specifies the sample duration in units specified by the scale parameter.
scale
Specifies the time scale for the duration value. This may be any arbitrary time scale; that is, it may not correspond to the movie's time scale. You should convert this time scale to the movie's time scale before using the duration value, using the Movie Toolbox's ConvertTimeScale function.
DESCRIPTION
Applications may use the MovieImportSetSampleDuration function to set the duration of samples to be added by your movie data import component. This duration is expressed in an arbitrary time scale.

RESULT CODE
badComponentSelector0x80008002Function not supported

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help